//传输总价，跳转到支付页面；
var local="http://47.104.10.151";

    function zhifu_bid1() {
        var price=document.getElementsByName("bid1")[9].value;
        var tax=document.getElementsByName("bid1")[10].value;
        var count;

        clearCookie('order_id');
        setCookie('order_id',keyid[0],1);
        if(tax=="17%"){
            tax=0.17;
            count=price*(1+tax);
        }else if(tax=="无税率"){
            count=price;

        }
        window.open('../js_document/支付页面(竞标)/main/main/test1.html?'+count);
}
function zhifu_bid2() {
    var price=document.getElementsByName("bid2")[9].value;
    var tax=document.getElementsByName("bid2")[10].value;
    var count;

    clearCookie('order_id');
    setCookie('order_id',keyid[1],1);
    if(tax=="17%"){
        tax=0.17;
        count=price*(1+tax);
    }else if(tax=="无税率"){
        count=price;

    }
    alert(tax);
    window.open('../js_document/支付页面(竞标)/main/main/test1.html?'+count);
}
function zhifu_bid3() {
    var price=document.getElementsByName("bid3")[9].value;
    var tax=document.getElementsByName("bid3")[10].value;
    var count;


    clearCookie('order_id');
    setCookie('order_id',keyid[2],1);
    alert(getCookie('order_id'));
    if(tax=="17%"){
        tax=0.17;
        count=price*(1+tax);
    }else if(tax=="无税率"){
        count=price;

    }
    alert(tax);
    window.open('../js_document/支付页面(竞标)/main/main/test1.html?'+count);
}
function zhifu_bid4() {
    var price=document.getElementsByName("bid4")[9].value;
    var tax=document.getElementsByName("bid4")[10].value;
    var count;


    clearCookie('order_id');
    setCookie('order_id',keyid[3],1);
    if(tax=="17%"){
        tax=0.17;
        count=price*(1+tax);
    }else if(tax=="无税率"){
        count=price;

    }
    alert(tax);
    window.open('../js_document/支付页面(竞标)/main/main/test1.html?'+count);
}
function zhifu_bid5() {
    var price=document.getElementsByName("bid5")[9].value;
    var tax=document.getElementsByName("bid5")[10].value;
    var count;


    clearCookie('order_id');
    setCookie('order_id',keyid[4],1);
    if(tax=="17%"){
        tax=0.17;
        count=price*(1+tax);
    }else if(tax=="无税率"){
        count=price;

    }
    alert(tax);
    window.open('../js_document/支付页面(竞标)/main/main/test1.html?'+count);
}
function zhifu_bid6() {
    var price=document.getElementsByName("bid6")[9].value;
    var tax=document.getElementsByName("bid6")[10].value;
    var count;


    clearCookie('order_id');
    setCookie('order_id',keyid[5],1);
    if(tax=="17%"){
        tax=0.17;
        count=price*(1+tax);
    }else if(tax=="无税率"){
        count=price;

    }
    alert(tax);
    window.open('../js_document/支付页面(竞标)/main/main/test1.html?'+count);
}

function setCookie(c_name,value,expiredays)
{
    var exdate=new Date()
    exdate.setDate(exdate.getDate()+expiredays)
    document.cookie=c_name+ "=" +escape(value)+
        ((expiredays==null) ? "" : ";expires="+exdate.toGMTString())+";path=/";
}


function clearCookie(name) {
    setCookie(name, "", -1);
}